1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

term.ui: render to the alternate buffer (#6832)

This commit is contained in:
spaceface777
2020-11-14 20:05:22 +01:00
committed by GitHub
parent b96a0246b5
commit 1ead130eed
6 changed files with 102 additions and 83 deletions

View File

@ -397,7 +397,6 @@ fn (mut a App) init_file() {
a.ed = &Buffer{}
mut init_y := 0
mut init_x := 0
eprintln('> a.files: $a.files | a.current_file: $a.current_file')
if a.files.len > 0 && a.current_file < a.files.len && a.files[a.current_file].len > 0 {
if !os.is_file(a.files[a.current_file]) && a.files[a.current_file].contains(':') {
// support the file:line:col: format
@ -454,8 +453,6 @@ fn event(e &tui.Event, x voidptr) {
if e.typ == .key_down {
match e.code {
.escape {
a.tui.set_cursor_position(0, 0)
a.tui.flush()
exit(0)
}
.backspace {