beaver-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Beaver-devel] Hangup on unindent


From: Leslie Polzer
Subject: [Beaver-devel] Hangup on unindent
Date: Thu, 5 Jun 2003 14:20:30 +0200

Do:
- open/create file with a lot of spaces before each line (ChangeLog for example)
- try to unindent lines with <Shift>+<Tab>

Get:
- a hung up Beaver (no core dump, it's frozen like it is with a shell suspend)
- gdb attached to it:

(gdb) bt
#0  0x401f5c65 in gtk_text_iter_get_char ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#1  0x08050b88 in catch_mult_line_indents (widget=0x81ef870, event=0x81bd8a8, 
    data=0x0) at editor.c:324
[... #2 - #25 not interesting at all ]

I think the problem is that you only want tabs for unindentation in the loop:

        if (ch == '\t')

but loop with

        while ([...] g_unichar_isspace (ch))

So either change the loop or the if condition.
I suggest if we just have a space indent and <Shift>+<Tab>either
- remove spaces one by one
- remove spaces in chunks of $tabwidth characters, if applicable

Oh, and by the way, I am moving ChangeLog's contents to NEWS (removing all
names and mail addresses) so we can start a real ChangeLog.

Leslie

-- 
Current Main System: LFS Linux dreadnought 2.4.20 #18 Thu May 15 19:11:10 CEST 
2003 i686
Random Religious Statement: Eterm is the most beautiful terminal emulator there 
is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]