From 3517bb1ece6902951565721ad19eff15644e098e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar <Bram@vim.org> Date: Fri, 3 Mar 2006 22:58:45 +0000 Subject: [PATCH] updated for version 7.0213 --- runtime/doc/todo.txt | 16 +++------------- src/gui_gtk_x11.c | 11 +++++++++++ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index ddc6b05f9f..199c5519b4 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.0aa. Last change: 2006 Mar 02 +*todo.txt* For Vim version 7.0aa. Last change: 2006 Mar 03 VIM REFERENCE MANUAL by Bram Moolenaar @@ -30,17 +30,6 @@ be worked on, but only if you sponsor Vim development. See |sponsor|. *known-bugs* -------------------- Known bugs and current work ----------------------- -Add setpos(), opposite of getpos(). -7 Add the markclear() function to delete a mark in another buffer. Charles - Campbell (2004 Jan 9) - http://mysite.verizon.net/astronaut/vim/index.html#Patch - Implement setmark(markname, lnum [, col [, filename]]) instead? - When "lnum" is zero delete the mark. - When "filename" has no wildcards and there is no matching buffer, add - the buffer (unlisted). - -Make match() use {start} differently when using {count} argument. - Function to get and restore window position? Including topline, column offset, etc. Use dictionary to store the info? @@ -1464,7 +1453,8 @@ Folding: to implement this? - "zJ" command: add the line or fold below the fold in the fold under the cursor. -- 'foldmethod' "syntax": "fold=3": set fold level for a region. +- 'foldmethod' "syntax": "fold=3" argument: set fold level for a region or + match. - Apply a new foldlevel to a range of lines. (Steve Litt) 8 Have some way to restrict commands to not folded text. Also commands like searches. diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 8e66d33ee0..04f1372ec2 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -3198,11 +3198,22 @@ gui_mch_show_tabline(int showit) if (!showit != !gtk_notebook_get_show_tabs(GTK_NOTEBOOK(gui.tabline))) { + /* Note: this may cause a resize event */ gtk_notebook_set_show_tabs(GTK_NOTEBOOK(gui.tabline), showit); update_window_manager_hints(); } } +/* + * Return TRUE when tabline is displayed. + */ + int +gui_mch_showing_tabline(void) +{ + return gui.tabline != NULL + && gtk_notebook_get_show_tabs(GTK_NOTEBOOK(gui.tabline)); +} + /* * Update the labels of the tabline. */ -- GitLab