This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Correct resizing of the command window in TUI mode


Currently the command window is not resized via wresize/wmvwin ncurses
functions so it always remain the same size at the same position.
This patch fixes this.

--
Balazs

Index: tui-win.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-win.c,v
retrieving revision 1.47
diff -c -p -r1.47 tui-win.c
*** tui-win.c	17 May 2010 22:21:43 -0000	1.47
--- tui-win.c	21 Jul 2010 20:43:22 -0000
*************** make_visible_with_new_height (struct tui
*** 1403,1408 ****
--- 1402,1413 ----
      case CMD_WIN:
        win_info->detail.command_info.cur_line = 0;
        win_info->detail.command_info.curch = 0;
+       wresize(TUI_CMD_WIN->generic.handle,
+               TUI_CMD_WIN->generic.height,
+               TUI_CMD_WIN->generic.width);
+       mvwin(TUI_CMD_WIN->generic.handle,
+             TUI_CMD_WIN->generic.origin.y,
+             TUI_CMD_WIN->generic.origin.x);
        wmove (win_info->generic.handle,
  	     win_info->detail.command_info.cur_line,
  	     win_info->detail.command_info.curch);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]